/**
 * Copyright (c) 2020-2021 ThunderSoft
 * All Rights Reserved by Thunder Software Technology Co., Ltd and its affiliates.
 * You may not use, copy, distribute, modify, transmit in any form this file
 * except in compliance with ThunderSoft in writing by applicable law.
 *
 */
/**
 * @file    hal_iot_i2c.c
 * @brief   hal i2c funtion 
 * @details hal i2c funtion
 * @version 1.0
 * @author  Hu lei
 * @date    2021-03-05
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2021-03-05               Hu lei              Create it.
 *
 */

#include "bl_i2c.h"
#include "iot_errno.h"
#include "iot_i2c.h"
#include "loopset_i2c.h"
#include "bl602_i2c.h"
#include "bl_irq.h"
#include "hal_i2c.h"

#define UNUSED(x) ((void)(x))

unsigned int IoTI2cWrite(unsigned int id, unsigned short deviceAddr, const unsigned char *data, unsigned int dataLen)
{
    UNUSED(id);
    UNUSED(deviceAddr);
    UNUSED(data);
    UNUSED(dataLen);

    return IOT_SUCCESS;
}

unsigned int IoTI2cRead(unsigned int id, unsigned short deviceAddr, unsigned char *data, unsigned int dataLen)
{
    UNUSED(id);
    UNUSED(deviceAddr);
    UNUSED(data);
    UNUSED(dataLen);

    return IOT_SUCCESS;
}

unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate)
{
    UNUSED(id);
    UNUSED(baudrate);

    return IOT_SUCCESS;
}

unsigned int IoTI2cDeinit(unsigned int id)
{
    UNUSED(id);

    return IOT_SUCCESS;
}

unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate)
{
    UNUSED(id);
    UNUSED(baudrate);

    return IOT_SUCCESS;   
}
